Class("UIButton",
{
	// --------- inheritance
	isa: UISimpleControl,

	// --------- constructor
	after:
	{
		initProperties: function(id, props)
		{
			// add props
			this.addProperty("Text",				this.node.getText,				this.node.setText, 				id);
			this.addProperty("FontFamily",			this.node.getFontFamily,		this.node.setFontFamily,		"Calibri");
			this.addProperty("FontSize",			this.node.getFontSize,			this.node.setFontSize,			12);
			this.addProperty("FontStyle",			this.node.getFontStyle,			this.node.setFontStyle);
			this.addProperty("FontColor",			this.node.getTextFill,			this.node.setTextFill, 			"Black");
			
			// set default props
			this.SetProperty("BorderColor", 'black');
			this.SetProperty("BorderWidth", 1);
			
		}
	},

	// --------- methods
	override:
	{
		initNode: function()
		{
			var btn = new Kinetic.Text();
			btn.setPadding(5);
			btn.setAlign('center');

			return btn;
		}
	}
});